package com.gongj.openfeign.client;

import Clients.IUserClient;
import com.gongj.commons.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

//@FeignClient(name = "appUser",path = "/api/user")  //name 调用的服务名称
//@Component
//public interface UserClient extends IUserClient {
//
//    @PostMapping("/addUser")
//    public User addUser(@RequestParam("id") String id, @RequestParam("name") String name);
//
//    @PostMapping(value = "upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
//    public String upload(@RequestPart("file") MultipartFile file);
//
//
//}
